package main

import (
	"fmt"
	"reflect"
)

type T struct {
	Id   int    `json:"id"`
	Name string `json:"name"`
}

func main() {

	t := T{}
	tt := reflect.TypeOf(t)
	name, _ := tt.FieldByName("Id")

	get := name.Tag.Get("json")
	fmt.Println(get)

}
